package org.jeecg.modules.compilation.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class PageParam {

    /**
     * 当前页
     */
    @ApiModelProperty(value = "当前页", example = "1")
    private long pageNo = 1;

    /**
     * 当前页
     */
    @ApiModelProperty(value = "关键字")
    private String keyword;
    /**
     * 每页的数量
     */
    @ApiModelProperty(value = "每页的数量", example = "20")
    private long pageSize = 10;



    @ApiModelProperty(hidden = true)
    public <T> Page<T> getPage() {
        return new Page<T>(this.pageNo, this.pageSize);
    }

}